package vivek.project.pocketmoney.expenses.model
{
	import mx.collections.ArrayCollection;
	import mx.collections.Sort;
	import mx.collections.SortField;

	public class ExpenseDataCache
	{
		[Bindable]
		public static var accountSummary:ArrayCollection=new ArrayCollection();
		[Bindable]
		public static var allCategoryData:ArrayCollection=new ArrayCollection();
		[Bindable]
		public static var expenseCategoryData:ArrayCollection=new ArrayCollection();
		[Bindable]
		public static var expenseData:ArrayCollection=new ArrayCollection();
		[Bindable]
		public static var expenseSummaryData:ArrayCollection=new ArrayCollection();
		[Bindable]
		public static var payeeData:ArrayCollection=new ArrayCollection();
		[Bindable]
		public static var recurringExpenseData:ArrayCollection=new ArrayCollection();
		[Bindable]
		public static var yearData:ArrayCollection=new ArrayCollection();

		public function ExpenseDataCache()
		{
			var catSortField:SortField=new SortField("cm_categoryname", true);
			var catSort:Sort=new Sort();
			catSort.fields=[catSort];
			allCategoryData.sort=catSort;
			allCategoryData.refresh();
			expenseCategoryData.sort=catSort;
			expenseCategoryData.refresh();
		}
	}
}